package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SCopyWaitingInfo extends Object implements IMessageBase
    {
        public var copyCode:int;
        public var groupInfos:Dictionary;
        public var waitingPlayers:Array;
        public const _type:int = 40;
        public static var _regist:SCopyWaitingInfo = new SCopyWaitingInfo(true);

        public function SCopyWaitingInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SCopyWaitingInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.copyCode);
            MapSCopyGroupInfoHelper.write(param1, this.groupInfos);
            SeqPublicMiniPlayerHelper.write(param1, this.waitingPlayers);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.copyCode = param1.readInt();
            this.groupInfos = MapSCopyGroupInfoHelper.read(param1);
            this.waitingPlayers = SeqPublicMiniPlayerHelper.read(param1);
            
        }

    }
}
